export const themeApprove = {
  rect: { // 矩形样式
    radius: 8,
    stroke: '#1677ff',
    width: 100,
    height: 60,
  },
  circle: {
    r: 525,
    stroke: '#FF6347',
    strokeWidth: 2,
  },
  polygon: {
    stroke: '#6495ED',
  },
  polyline: {
    strokeWidth: 1,
  },
  edgeText: {
    background: {
      fill: 'white',
    },
  },
}
export const approveNodes = [
  {
    type: 'start',
    label: '开始',
    style: {
      width: '30px',
      height: '30px',
      borderRadius: '15px',
      border: '2px solid #FF6347',
    },
    property: {
      username: '',
      time: '',
      startTime: '',
      endTime: '',
    },
  },
  {
    type: 'job',
    label: '步骤',
    style: {
      width: '50px',
      height: '40px',
      borderRadius: '4px',
      border: '2px solid #1677ff',
    },
  },
  // {
  //   type: 'approver',
  //   label: '审批',
  //   style: {
  //     width: '50px',
  //     height: '40px',
  //     borderRadius: '4px',
  //     border: '2px solid #3CB371',
  //   }
  // },
  // {
  //   type: 'jugement',
  //   label: '判断',
  //   style: {
  //     width: '30px',
  //     height: '30px',
  //     border: '2px solid #6495ED',
  //     transform: 'rotate(45deg)',
  //   },
  // },
  {
    type: 'end',
    label: '结束',
    style: {
      width: '30px',
      height: '30px',
      borderRadius: '15px',
      border: '2px solid #FF6347',
    },
  },
]

export const flowDefaultData = {
  nodes: [
    {
      id: 'nid-RL4yId',
      type: 'start',
      x: 540,
      y: 160,
      properties: {},
      text: {
        x: 540,
        y: 160,
        value: '开始',
      },
    },
    {
      id: 'nid-LArnzR',
      type: 'job',
      x: 540,
      y: 240,
      properties: {},
      text: {
        x: 540,
        y: 240,
        value: '步骤',
      },
    },
  ],
  edges: [
    {
      id: '6a7028dc-8bf1-4068-a65b-c075114eefc9',
      type: 'polyline',
      properties: {},
      sourceNodeId: 'nid-RL4yId',
      targetNodeId: 'nid-LArnzR',
      startPoint: {
        x: 540,
        y: 180,
      },
      endPoint: {
        x: 540,
        y: 215,
      },
      pointsList: [
        {
          x: 540,
          y: 180,
        },
        {
          x: 540,
          y: 210,
        },
        {
          x: 540,
          y: 210,
        },
        {
          x: 540,
          y: 185,
        },
        {
          x: 540,
          y: 185,
        },
        {
          x: 540,
          y: 215,
        },
      ],
    },
  ],
}
export const FlowDefaultData = {
  nodes: [
    {
      id: 'nid-O8hnOk',
      type: 'start',
      x: 760,
      y: 220,
      properties: {},
      text: {
        x: 760,
        y: 220,
        value: '申请',
      },
    },
    {
      id: 'nid-riF3O9',
      type: 'job',
      x: 760,
      y: 300,
      properties: {},
      text: {
        x: 760,
        y: 300,
        value: '审批',
      },
    },
    {
      id: 'nid-9Nq8rU',
      type: 'jugement',
      x: 760,
      y: 420,
      properties: {},
      text: {
        x: 760,
        y: 420,
        value: '判断',
      },
    },
    {
      id: 'nid-oPiqBl',
      type: 'end',
      x: 760,
      y: 630,
      properties: {},
      text: {
        x: 760,
        y: 665,
        value: '结束',
      },
    },
    {
      id: 'nid-wFYeKJ',
      type: 'job',
      x: 760,
      y: 510,
      properties: {},
      text: {
        x: 760,
        y: 510,
        value: '审批',
      },
    },
  ],
  edges: [
    {
      id: '192ee57e-93b7-48cc-a6f7-bf05e45ddc19',
      type: 'polyline',
      sourceNodeId: 'nid-O8hnOk',
      targetNodeId: 'nid-riF3O9',
      startPoint: {
        x: 760,
        y: 240,
      },
      endPoint: {
        x: 760,
        y: 275,
      },
      properties: {},
      pointsList: [
        {
          x: 760,
          y: 240,
        },
        {
          x: 760,
          y: 270,
        },
        {
          x: 760,
          y: 270,
        },
        {
          x: 760,
          y: 245,
        },
        {
          x: 760,
          y: 245,
        },
        {
          x: 760,
          y: 275,
        },
      ],
    },
    {
      id: 'befe2598-40db-42c5-8b03-e4bd811fe400',
      type: 'polyline',
      sourceNodeId: 'nid-riF3O9',
      targetNodeId: 'nid-9Nq8rU',
      startPoint: {
        x: 760,
        y: 325,
      },
      endPoint: {
        x: 760,
        y: 385,
      },
      properties: {},
      text: {
        x: 760,
        y: 355,
        value: '通过',
      },
      pointsList: [
        {
          x: 760,
          y: 325,
        },
        {
          x: 760,
          y: 385,
        },
      ],
    },
    {
      id: 'cba00b2b-1944-4206-bc64-8ee387c550db',
      type: 'polyline',
      sourceNodeId: 'nid-riF3O9',
      targetNodeId: 'nid-oPiqBl',
      startPoint: {
        x: 810,
        y: 300,
      },
      endPoint: {
        x: 780,
        y: 630,
      },
      properties: {},
      text: {
        x: 863,
        y: 465,
        value: '驳回',
      },
      pointsList: [
        {
          x: 810,
          y: 300,
        },
        {
          x: 863,
          y: 300,
        },
        {
          x: 863,
          y: 630,
        },
        {
          x: 780,
          y: 630,
        },
      ],
    },
    {
      id: '768ea82d-3f16-41ae-a3fc-c964c67f7281',
      type: 'polyline',
      sourceNodeId: 'nid-9Nq8rU',
      targetNodeId: 'nid-wFYeKJ',
      startPoint: {
        x: 760,
        y: 455,
      },
      endPoint: {
        x: 760,
        y: 485,
      },
      properties: {},
      text: {
        x: 760,
        y: 470,
        value: '是',
      },
      pointsList: [
        {
          x: 760,
          y: 455,
        },
        {
          x: 760,
          y: 485,
        },
        {
          x: 760,
          y: 485,
        },
        {
          x: 760,
          y: 455,
        },
        {
          x: 760,
          y: 455,
        },
        {
          x: 760,
          y: 485,
        },
      ],
    },
    {
      id: 'e10a387f-ad64-40da-8690-28e72e726eb7',
      type: 'polyline',
      sourceNodeId: 'nid-wFYeKJ',
      targetNodeId: 'nid-oPiqBl',
      startPoint: {
        x: 760,
        y: 535,
      },
      endPoint: {
        x: 760,
        y: 610,
      },
      properties: {},
      pointsList: [
        {
          x: 760,
          y: 535,
        },
        {
          x: 760,
          y: 610,
        },
      ],
    },
  ],
}
